#ifndef BUFFERS_H
#define BUFFERS_H

#include "HD61202.h"
#define lcdBufSize (HD61202_SCREEN_HEIGHT*HD61202_SCREEN_WIDTH/8)
#define rcBufSize 80	// size of receive buffer in bytes
#define sendBufSize 129

extern volatile unsigned char 	lcdBuffer[], sendBuffer[], sendIndex,
				sendCount, receiveBuffer[], rcBufHead,
    				rcBufTail;
extern volatile unsigned int lcdBufIndex;

char receiveBufIns(unsigned char data);
unsigned char receiveBufRem(void);
void receiveBufRedirect(char * dest, int len);

#endif
